home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 13 / boot-disc-1997-09.iso / HyprWire / DATA.Z / 05 Whip.mdf < prev    next >
Text File  |  1997-01-28  |  7KB  |  280 lines

  1. kxKinetix
  2. kxType = kxSmalltalkJavaPlugIn
  3.  
  4. kxModuleDefinition WhipPlugIn = 
  5.   {
  6.   kxPublicName = "Whip"
  7.   kxVersion = "1.0"
  8.   kxCreationTime = "09/3/96  9:32"
  9.   kxAuthor = "Kinetix"
  10.   kxLargeIcon = kxBmResType "ModIcons.dll" "WHIP2"
  11.   kxSmallIcon = kxBmResType "ModIcons.dll" "WHIP1"
  12.   kxLargeIcon24 = kxBmResType "ModIcons.dll" "WHIP2H"
  13.   kxSmallIcon24 = kxBmResType "ModIcons.dll" "WHIP1H"
  14.   kxSmalltalkLibraries = "Whip"
  15.   kxSmalltalkProxyClass = WhipBundle    
  16.   kxFlags = kxEmbeddedWindow
  17.   kxShortDescription = "First Class Plug-in for Whip!."
  18. //  kxHelpDoc = "http:/www.kinetix.com/blue/plugin-in-docs/.../help.html"
  19.  
  20.   kxPlugInClass = WhipVisualPlugIn
  21.   kxPlugInPackage = "kinetix.hyperc1.runtime"
  22.  
  23.  
  24.   kxPropertyEditors =  WhipBundleEditor OpusLabelCommentEditor ModuleStateEditor SizePositionEditor PortEditor
  25.  
  26.  
  27.   kxLayoutViewProxyClass = WhipAuthorRep
  28.  
  29.   //vogey I don't think I need this anymore.
  30.   kxPersistentFields =
  31.         {
  32.         kxField FileName= 
  33.             {
  34.             kxJavaSignature = "LString"
  35.             kxAccessor = fiSetURL
  36.             kxDescription = "The URL for the WHIP! file."
  37.             kxDefault = "none"
  38.             }
  39.         }
  40.  
  41.         //    The input ports...
  42.   kxInputPorts =
  43.     {
  44.         kxInclude "Basic.ipt"
  45. //        kxInclude "VisualComplete.ipt"
  46.         kxInclude "VisualBasicCommon.ipt"
  47.         kxInclude "RelativeURL.ipt"
  48.         kxInclude "SubImageRect.ipt"
  49. //     kxPort Reset =
  50. //      {
  51. //      kxFlags = kxSystem
  52. //      kxJavaMethod = wiReset
  53. //      kxJavaSignature = "()Z"
  54. //      kxPublicNames = "Reset" "Was Successful"
  55. //      }
  56.  
  57.    kxPort GetDefaultView =
  58.     {
  59.     kxJavaMethod = wiGetDefaultView
  60.     kxJavaSignature = "()LHwRectangle"
  61.     kxPublicNames = "Get Default View" "Rectangle"
  62.     }
  63.    kxPort DisableUI =
  64.      {
  65.       kxJavaMethod = wiDisableUI
  66.       kxJavaSignature = "()V"
  67.       kxPublicNames = "Disable User Control" "None"
  68.     }
  69.    kxPort EnableUI =
  70.       {
  71.       kxJavaMethod = wiEnableUI
  72.       kxJavaSignature = "()V"
  73.       kxPublicNames = "Enable User Control" "None"
  74.       }
  75.    kxPort FitToWindow =
  76.       {
  77.       kxJavaMethod = wiFitToWindow
  78.       kxJavaSignature = "()V"
  79.       kxPublicNames = "Fit View to Window" "None"
  80.       }
  81.    kxPort GetDrawingExtent =
  82.       {
  83.       kxJavaMethod = wiGetDrawingExtent
  84.       kxJavaSignature = "()LHwRectangle"
  85.       kxPublicNames = "Get Drawing Extent" "Drawing Extent"
  86.       }
  87.    kxPort GetEnableUI =
  88.       {
  89.       kxJavaMethod = wiGetEnableUI
  90.       kxJavaSignature = "()Z"
  91.       kxPublicNames = "UI Enabled?" "true/false"
  92.       }
  93.    kxPort GetMaintainAspectRatio =
  94.       {
  95.       kxJavaMethod = wiGetMaintainAspectRatio
  96.       kxJavaSignature = "()Z"
  97.       kxPublicNames = "Maintain Aspect Ratio?" "true/false"
  98.       }
  99. //   kxPort GetURL =
  100. //      {
  101. //      kxJavaMethod = wiGetURL
  102. //      kxJavaSignature = "()LString"
  103. //      kxPublicNames = "Get URL" "WHIP! URL Name" "None"
  104. //      }
  105.    kxPort GetView =
  106.       {
  107.       kxJavaMethod = wiGetCurrentView
  108.       kxJavaSignature = "()LHwRectangle"
  109.       kxPublicNames = "Get View" "View Rectangle"
  110.       }
  111.    kxPort GetWindowExtent =
  112.       {
  113.       kxJavaMethod = wiGetWindowExtent
  114.       kxJavaSignature = "()LHwRectangle"
  115.       kxPublicNames = "Get Window Extent" "Window Rectangle"
  116.       }
  117.    kxPort MaintainAspectRatio =
  118.       {
  119.       kxJavaMethod = wiMaintainAspectRatio
  120.       kxJavaSignature = "(Z)V"
  121.       kxPublicNames = "Maintain Aspect Ratio" "true/false" "None"
  122.       }
  123.    kxPort Pan = 
  124.       {
  125.       kxJavaMethod = wiPan
  126.       kxJavaSignature = "(LHwNumber;LHwNumber;LHwNumber;LHwNumber;)V"
  127.       kxPublicNames = "Pan" "delta X" "delta Y" "number of increments" "delay between increments (milliseconds)" "None"
  128.       }
  129.  
  130.    kxPort PanTo = 
  131.       {
  132.       kxJavaMethod = wiPanTo
  133.       kxJavaSignature = "(LHwNumber;LHwNumber;LHwNumber;LHwNumber;)V"
  134.       kxPublicNames = "Pan To" "X" "Y" "number of increments" "delay between increments (milliseconds)" "None"
  135.       }
  136. //   kxPort SetURL =
  137. //      {
  138. //      kxJavaMethod = wiSetURL
  139. //      kxJavaSignature = "(LString;)V"
  140. //      kxPublicNames = "Set URL" "WHIP! URL Name" "None"
  141. //      }
  142.    kxPort Print = 
  143.       {
  144.       kxJavaMethod = wiPrint
  145.       kxJavaSignature = "(Z)V"
  146.       kxPublicNames = "Print" "Quick Print" "None"
  147.       }
  148.     kxPort SetDefaultView =
  149.       {
  150.       kxJavaMethod = wiSetDefaultView
  151.       kxJavaSignature = "()V"
  152.       kxPublicJavaSignature = "()V"
  153.       kxPublicNames = "Set to Default View" "None"
  154.       }
  155.     kxPort SetView =
  156.       {
  157.       kxJavaMethod = wiSetView
  158.       kxJavaSignature = "(LHwRectangle;)V"
  159.       kxPublicJavaSignature = "(LHwRectangle;)V"
  160.       kxPublicNames = "Set View" "Rectangle" "None"
  161.       }
  162.     kxPort TranslateViewBy = 
  163.       {
  164.       kxJavaMethod = wiTranslateViewBy
  165.       kxJavaSignature = "(LHwNumber;LHwNumber;)V"
  166. //#bug 1931 by to By
  167.       kxPublicNames = "Translate View By" "delta X" "delta Y" "None"
  168.       }
  169.     kxPort TranslateViewTo = 
  170.       {
  171.       kxJavaMethod = wiTranslateViewTo
  172.       kxJavaSignature = "(LHwNumber;LHwNumber;)V"
  173.       kxPublicNames = "Translate View To" "X" "Y" "None"
  174.       }
  175.     kxPort ZoomBy =
  176.       {
  177.       kxJavaMethod = wiZoom
  178.       kxJavaSignature = "(LHwObject;LHwNumber;LHwNumber;LHwNumber;LHwNumber;)V"
  179.       kxPublicNames = "Zoom By" "center point" "scale X" "scale Y" "number of increments" "delay between increments (milliseconds)" "None"
  180.     kxPublicJavaSignature = "(LPoint;LHwNumber;LHwNumber;LHwNumber;LHwNumber;)V"
  181.       }
  182.     kxPort ZoomTo =
  183.       {
  184.       kxJavaMethod = wiZoomTo
  185.       kxJavaSignature = "(LHwRectangle;LHwNumber;LHwNumber;)V"
  186.       kxPublicJavaSignature = "(LRectangle;LHwNumber;LHwNumber;)V"
  187.       kxPublicNames = "Zoom To" "rectangle" "number of increments" "delay between increments (milliseconds)" "none"
  188.       }
  189.     }
  190.  
  191.  
  192.  
  193.  
  194.         //    The input port menu structure...
  195.   kxInputPortsMenu =
  196.     {
  197.     Reset
  198.     On
  199.     Off
  200.     Toggle
  201.     kxSeparator
  202.     SetView
  203.     SetDefaultView
  204.     GetDefaultView
  205.     FitToWindow
  206.     SetRelativeURL
  207.     GetRelativeURL
  208.     Print
  209.     kxMenu "More" =
  210.       {
  211.           kxInclude "Basic.imn"
  212. //    Get rid of the bringToFront sendToBack ports and VisualState ports.
  213. //        kxInclude "VisualComplete.imn"
  214.         kxMenu "Position"
  215.             {
  216.             kxInclude "PositionBasic.imn"
  217.             }
  218.         kxInclude "Size.imn"
  219.         kxInclude "Visibility.imn"
  220.         kxMenu "Aspect Ratio" =
  221.             {
  222.             GetMaintainAspectRatio
  223.             MaintainAspectRatio
  224.             }
  225.         kxMenu "Inquiry" =
  226.             {
  227.             GetCurrentView
  228.             GetDrawingExtent
  229.             GetView
  230.             GetWindowExtent
  231.             }
  232.         kxMenu "Transformations" =
  233.             {
  234.             Pan
  235.             PanTo
  236.             TranslateViewBy
  237.             TranslateViewTo
  238.             ZoomBy
  239.             ZoomTo
  240.             }
  241.         kxMenu "User Interface" =
  242.             {
  243.             DisableUI
  244.             EnableUI
  245.             GetEnableUI
  246.             }
  247.       }
  248.     }
  249.  
  250.         //    The output ports...
  251.   kxOutputPorts =
  252.     {
  253.     kxPort TransformationDone=
  254.       {
  255.       kxJavaSignature = "(LString;LHwRectangle;)"
  256.       kxPublicNames = "Transformation Done" "Current View" "None"
  257.       }
  258.  
  259.     kxPort ZoomError=
  260.       {
  261.       kxJavaSignature = "(LString;LString;)"
  262.       kxPublicNames = "Zoom Error" "Error type" "None"
  263.       }
  264.  
  265.     kxPort MediaLoaded =
  266.       {
  267.       kxJavaSignature = "()V"
  268.       kxPublicNames = "Media Loaded" "Not Specified"
  269.       }
  270.     }
  271.  
  272.         //    The output port menu structure...
  273.   kxOutputPortsMenu =
  274.     {
  275.     TransformationDone
  276.     ZoomError
  277.     MediaLoaded
  278.     }
  279.   }
  280.